package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qijian.common.annotation.KingDeeField;
import com.qijian.common.enums.ApprovalDescriptionEnum;
import com.qijian.tool.domain.Storage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 质量异常反馈对象 main_process_order_quality
 *
 * @author qijian
 * @date 2023-08-02
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_process_order_quality")
public class ProcessOrderQuality extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "id")
    private Long id;

    @Excel(name = "工单ID")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "工单ID")
    private Long workId;

    @Excel(name = "请检单号")
    @ApiModelProperty(value = "请检单号")
    private String qualityCode;

    @Excel(name = "描述")
    @ApiModelProperty(value = "描述")
    private String requestDesc;

    @Excel(name = "状态", readConverterExp = "0=-保存，1-审核中，2-同意,3-拒绝")
    @ApiModelProperty(value = "状态（0-保存，1-审核中，2-同意,3-拒绝）")
    private int status;

    @Excel(name = "当前节点")
    @ApiModelProperty(value = "当前节点")
    private String currentNode;

    @Excel(name = "车间主任id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "车间主任id")
    private Long deptLeaderId;

    @Excel(name = "车间主任姓名")
    @ApiModelProperty(value = "车间主任姓名")
    private String deptLeaderName;

    @Excel(name = "检验班组id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "检验班组id")
    private Long qualityLeaderId;

    @Excel(name = "检验班组姓名")
    @ApiModelProperty(value = "检验班组姓名")
    private String qualityLeaderName;

    @Excel(name = "检验员id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "检验员id")
    private Long checkerId;

    @Excel(name = "检验员姓名")
    @ApiModelProperty(value = "检验员姓名")
    private String checkerName;

    @Excel(name = "是否合格")
    @ApiModelProperty(value = "是否合格")
    private Boolean qualified;

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @Excel(name = "备注1")
    @ApiModelProperty(value = "班组长拒绝备注")
    private String remark1;

    @Excel(name = "备注2")
    @ApiModelProperty(value = "检验员拒绝备注")
    private String remark2;

    @ApiModelProperty(value = "创建人id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long createById;

    @ApiModelProperty(value = "直属部门Id")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long qualityDeptId;

    @ApiModelProperty(value = "直属部门")
    private String qualityDeptName;

    @ApiModelProperty(value = "0本人-1车间主任-2检验班组长-3检验员")
    private int flowNode;

    @ApiModelProperty(value = "当前责任人")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long currentId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date submitTime;

    @ApiModelProperty(value = "车间主任最后审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deptLeaderSubmitTime;

    @ApiModelProperty(value = "检验班组最审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date qualityLeaderSubmitTime;

    @ApiModelProperty(value = "检验员最后审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date checkerSubmitTime;

}
